Support table-qualified column names in --skip-columns and --include-columns#214
Support table-qualified column names in --skip-columns and --include-columns#214
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
…columns Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR updates wp search-replace to treat --skip-columns and --include-columns entries as matching either unqualified column names (column) or table-qualified names (table.column), fixing the long-standing behavior where qualified names were silently ignored.
Changes:
- Extend include/skip column matching in the main processing loop to also recognize
table.column. - Apply the same qualified matching in the SQL export (PHP) path and add missing
--include-columnshandling there. - Update command option docs and add Behat coverage for table-qualified include/skip usage.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
src/Search_Replace_Command.php |
Adds table-qualified matching for include/skip columns in both processing and export paths; updates option docs. |
features/search-replace.feature |
Adds acceptance tests ensuring table.column works for --skip-columns and --include-columns. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
@copilot unexpected test failure: |
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
... Fixed in ada8f31. The previous commit introduced a |
--skip-columnsand--include-columnssilently ignored table-qualified column names likewp_posts.guid, with no documentation indicating this format was unsupported. This adds first-class support for thetable.columnsyntax.Changes
include_columnsandskip_columnschecks now match againstcolumnandtable.columnformatsinclude_columnsfiltering (pre-existing omission)Usage
Plain column names (e.g.
--skip-columns=guid) continue to work as before and match across all tables.Original prompt
💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.